package cn.highset.modules.base.serviceimpl.mybatis;

import cn.highset.modules.base.dao.mapper.UserMapper;
import cn.highset.modules.base.entity.User;
import cn.highset.modules.base.service.mybatis.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author Victor
 */
@Service
public class IUserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    /**
     * 通过用户名获取用户ID
     *
     * @param username
     * @return
     */
    @Override
    public String findIdByUsername(String username) {
        return baseMapper.findIdByUsername(username);
    }
}
